//
//  VideoWebViewController.m
//  BeanTrip
//
//  Created by houlei on 15/7/8.
//  Copyright (c) 2015年 PandaGroup. All rights reserved.
//

#import "VideoWebViewController.h"
#define WIDTH (self.view.frame.size.width)
#define HEIGHT (self.view.frame.size.height)
@interface VideoWebViewController ()

@end

@implementation VideoWebViewController

- (void)dealloc
{
    [_videoM release];
    [_webView release];
    [super dealloc];
}
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT - 49 - 64)];
    NSURLRequest *urlRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:self.videoM.outerGPlayerUrl]];
    
    [self.view addSubview:self.webView];
    [self.webView loadRequest:urlRequest];
    [_webView release];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
